package com.descartes.mymedia.dao.implementation;

import java.util.List;

import javax.persistence.EntityManager;

import com.descartes.mymedia.dao.config.EntityManagement;
import com.descartes.mymedia.dao.interfaces.MediaDAO;
import com.descartes.mymedia.model.Media;
import com.descartes.mymedia.model.Profil;

public class MediaDAOImpl implements MediaDAO {
	
    private EntityManager em;

	public MediaDAOImpl() {
        em = EntityManagement.getInstance().getEntityManager();
	}

	public List<Media> getMedias(Profil profil) {
		/*
		String queryString = "SELECT pm FROM ProfilMedia pm where pm.profil = :profil";
		TypedQuery<ProfilMedia> tqProfilMedia = em.createQuery(queryString, ProfilMedia.class);
		tqProfilMedia.setParameter("profil", profil);
		ProfilMedia pm = tqProfilMedia.getSingleResult();
		return pm.getMedias();
		*/
		return null;
	}
}
